<template>
  <div id='taskinfo'>
    <!-- <slot></slot> -->
    <van-nav-bar title="任务详情"
      left-text="返回"
      left-arrow
      @click-left="send" />
    <slot>
    </slot>
  </div>
</template>

<script>
export default {
  name: 'taskinfo',
  data() {
    return {}
  },
  props: {},
  components: {},
  computed: {},
  watch: {},
  created() {},
  mounted() {},
  methods: {
    send() {
      this.$emit('func', '')
    },
  },
}
</script>

<style scoped lang='less'>
#taskinfo {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #f8f8f8;
  z-index: 1;
  overflow-y: scroll;
  left: 0;
  top: 0;
  .imgbox {
    width: 100%;
    img {
      width: 40%;
      margin-right: 0.2rem;
      margin-left: 0.2rem;
    }
  }
}
</style>

